Creating the Group Bands

Group Header and Group Footer bands will be created which will surround the Detail Band.  Since the report is structured to print employees by department name with an employee count and sum of salaries for each department, use of Groups is necessary.

  1. Within the Band Report Editor, click the “Create a Band Group” icon Create band group icon, then click anywhere within the image of the report.  The following dialog box will appear:
    The dialog that is displayed when creating a Group Band.  Various fields are available for configuring the band.

Band Groups are processed as follows:

Note: The Group-by Field can be a simple Data Field from the dataset, or can be a complex Expression. If you wish to create a Band Group, you should ensure that your data is sorted (ORDER BY) on the Data Field(s) or Expressions(s) you wish to use.

  1. To enter the item that the detail band will be grouped by, click the ellipses button Browse button. Has ellipses on it. to the right of the “Group by field or expression” text field. 
    Group by field or expression section of the group band options dialog. There is an empty text field with a browse button to the right.
    This will launch the Expression Wizard:
    Expression wizard. This dialog has a large, empty text field. Below are buttons for entering a database field, function, or variable. Below those buttons are buttons for entering standard operators, such as equals, greater than, and boolean operators.
  2. Click the Database Field button and select dept_id from the list of available fields. The dataset for this example is ArgosData.
    Insert database field dialog. The department i d is selected as a field to insert into the expression.

Remember: When grouping by a particular field (dept_id in this example), the data must be sorted by the same field.

  1. Click OK, then click OK on Expression Editor to exit and return to the group band options dialog.
    Group band options dialog with department i d entered into the group by field or expression edit box. A footer band has also been created and appears in the Footer Band section in the upper right corner of the dialog.
    You will see that your expression now appears in the "Group-by field or expression" field.  A later example will illustrate how to group by an expression as opposed to this example where grouping is done by database field.
  2. Click the Create button in the upper right corner of the dialog (in the Footer Band section) to create a corresponding Group Footer, then click OK.

The Banded Editor will now appear as follows:

This image shows the report containing the group header and group footer bands.

Note the existence of the Group Header (Header 1) and Footer Bands (Footer 1) surrounding the Detail Band.

Tip: Argos generates names for each band, but you can rename the bands.  Note on the figure to the left that “Pageheader” is the label given to the Page Header Band and “Columnheader” is the name given to the Column Header Band.

To change the name of the band:
  1. Right click anywhere within the band and click on “Options” to launch the Options dialog.
  2. Within the “Name” field enter the name of your choice (spaces between words are not permitted).  The new name will replace the name given by Argos.
  3. Click OK.

When many bands are created in a complex report, creating meaningful names will be useful when referencing bands.

At this point the report will look like this:

This image shows the report at the current stage of the design.

Note the grouping by Department Name as well as the existence of the date and page count at the top right of the report.

Next steps: